package com.xiaoshi.utils;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

public class BeanCopyUtil {

    public static <T> List<T> copyList(List list, Type type) {
        if (ObjectUtils.isEmpty(list)) {
            return new ArrayList();
        }
        return GsonUtils.fromJson(GsonUtils.toJson(list),type);
    }
}
